/* 
 * Copyright (c) 2019, CENTRIN.CIYUN.LTD. All rights reserved.
 */
package com.cory.boot.domain.chart;

import lombok.Getter;
import lombok.Setter;

/**
 * 图形具体数据，包括折线、饼图等
 * @author xiongcong
 * @date 2019-04-09
 */
@Getter
@Setter
@SuppressWarnings("unchecked")
public abstract class Series<T> extends Data<T> {
    private String name;
    private SeriesType type;
    private String stack;
    
    public T name(String name) {
        this.name = name;
        return (T)this;
    }
    
    public T type(SeriesType type) {
        this.type = type;
        return (T)this;
    }
    
    public T stack(String stack) {
        this.stack = stack;
        return (T)this;
    }
}
